package com.bykj.property.model;

import com.baomidou.mybatisplus.annotation.TableField;
    import com.baomidou.mybatisplus.annotation.TableName;
    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import java.io.Serializable;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;
import com.bykj.property.model.SysUser;
import com.bykj.property.model.SysRole;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;
    import java.util.List;
/**
* <p>
    * 用户角色关系
    * </p>
*
* @author liangyiming
* @since 2019-06-20
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("sys_user_n_sys_role")
    @ApiModel(value="SysUserNSysRole对象", description="用户角色关系")
    public class SysUserNSysRole extends  SysUser{


private static final long serialVersionUID = 1L;
        @TableId(value = "sys_user_n_sys_role_id", type = IdType.AUTO)
    private Long sysUserNSysRoleId;
    /**
     * 角色id属性
     */
    @TableField(exist = false)
    private List<SysRole> sysRoles;

}
